home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr50
/
pbc22b.zip
/
PBC$BAS.ZIP
/
MSHUFFLD.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-04-19
|
649b
|
15 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION RndI% (TopValue%)
SUB MatShuffleD (Array() AS DOUBLE, StartPosn%, EndPosn%)
Elements% = EndPosn% - StartPosn% + 1
FOR tmp% = StartPosn% TO EndPosn%
SWAP Array(tmp%), Array(RndI%(Elements%) + StartPosn%)
NEXT
END SUB